﻿@model FlyingClub.Models.Member

@{
    ViewBag.Title = "Details";
}

<h1>@ViewBag.Title</h1>

<table class="members-details-tab">
    <tbody>
        <tr>
            <td>NOM Prénom</td>
            <td>@Model.Lastname.ToUpper() @Model.Firstname</td>
        </tr>
        <tr>
            <td>Adresse e-mail</td>
            <td>@Model.Email</td>
        </tr>
            <td>Sexe</td>
            <td>
                @if (@Model.Gender == true)
                {
                    <span>♂</span>
                }
                else
                {
                    <span>♀</span>
                }
            </td>
        </tr>
        <tr>
            <td>Date d'hadésion</td>
            <td>@Model.AdhesionDate.ToString("dd/MM/yyyy")</td>
        </tr>
        <tr>
            <td>Porte-monnaie</td>
            <td>@Model.Wallet</td>
        </tr>
        <tr>
            <td>Membre du staff</td>
            <td>@Html.DisplayFor(modelItem => Model.Staff)</td>
        </tr>
        <tr>
            <td>Numéro de rue</td>
            <td>@Model.AddressNumber</td>
        </tr>
        <tr>
            <td>Rue</td>
            <td>@Model.AddressStreet</td>
        </tr>
        <tr>
            <td>Code postal</td>
            <td>@Model.AddressCode</td>
        </tr>
        <tr>
            <td>Ville</td>
            <td>@Model.AddressCity</td>
        </tr>
        <tr>
            <td>Pays</td>
            <td>@Model.AddressCountry</td>
        </tr>
        <tr>
            <td>Numéro d'instructeur</td>
            <td>@Model.InstructorNumber</td>
        </tr>
    </tbody>
</table>
<div class="link-button">
    <a href="/Members/Edit/@Model.ID#admin">Editer les informations</a>
    
    @if (Session["Staff"] != null)
    {
        <a href="/Members/CRUD#admin-members-crud">Retour à la liste des membres</a>
    }
</div>
<div></div>
